package com.gitee.huxing.course.conc.conc02.lock;

/**
 * @Description:
 * @ProjectName: JavaCourse
 * @Package: com.gitee.huxing.course.conc.conc02.lock
 * @ClassName: ReentrantLockDemo
 * @Author: huxing
 * @DateTime: 2021-08-25 上午10:21
 */
public class ReentrantLockDemo {

    public static void main(String[] args) {

        final Count count = new Count();

        for (int i= 0; i< 2; i++){
            new Thread(() -> count.get()).start();
        }

        for (int i= 0; i< 2; i++){
            new Thread(() -> count.put()).start();
        }
    }
}
